package com.gzx.spring.db.service;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gzx.risk.core.pojo.OrderInfo;
import com.gzx.spring.db.entity.OrderNotify;

public interface OrderNotifyService extends IService<OrderNotify> {
	/**
	 * 已通知
	 */
	void addNotified(OrderInfo order);

	/**
	 * 是否已通知
	 * */
	boolean isNotified(String ordercode);
	
	/**
	 * 获取时间范围内订单量（与通知时间
	 * */
	long getOrderCount(LocalDateTime startTime, LocalDateTime endTime);
}
